var o__config={};
o__config['gz']=o__config['1']={domain:'gz',province:'GUANGDONG',city:6,mapid:1,x:52500,y:40900,mpx:0.31475,mpy:0.43738,ruler:200};
o__config['bj']=o__config['2']={domain:'bj',province:'BEIJING',city:2,mapid:2,x:532000,y:520900,mpx:0.31691,mpy:0.60800,ruler:400,msize:8};
o__config['wuhu']=o__config['3']={domain:'wuhu',province:'ANHUI',city:145,mapid:3,x:526902,y:525584,mpx:0.26807,mpy:0.53199,ruler:150};//
o__config['sh']=o__config['4']={domain:'sh',province:'SHANGHAI',city:4,mapid:4,x:1078000,y:1063000,mpx:0.14742,mpy:0.20487,isLoadMiniMap:false,ruler:100};//
o__config['cz']=o__config['5']={domain:'cz',province:'JIANGSU',city:165,mapid:5,x:532922,y:541588,mpx:0.14742,mpy:0.20487,ruler:200};//
o__config['zs']=o__config['6']={domain:'zs',province:'GUANGDONG',city:14,mapid:6,x:552628,y:535712,mpx:0.18063,mpy:0.25574,ruler:150};//
o__config['yiwu']=o__config['7']={domain:'yiwu',province:'ZHEJIANG',city:183,mapid:7,x:536677,y:543262,mpx:0.14742,mpy:0.20487,ruler:200};//
o__config['km']=o__config['8']={domain:'km',province:'YUNNAN',city:290,mapid:8,x:565152,y:561156,mpx:0.14742,mpy:0.20487,ruler:200};//
o__config['macau']=o__config['9']={domain:'macau',province:'MACAU',city:370,mapid:9,x:566380,y:539980,mpx:0.15461,mpy:0.21107,ruler:200};//
o__config['gy']=o__config['10']={domain:'gy',province:'GUIZHOU',city:306,mapid:10,x:549076,y:528576,mpx:0.14742,mpy:0.20487,ruler:200};//
o__config['dy']=o__config['11']=o__config['www.dycity.gov.cn']={domain:'dy',province:'SHANDONG',city:94,mapid:11,x:564056,y:545672,mpx:0.14742,mpy:0.20487,ruler:200};//
o__config['qz']=o__config['12']={domain:'qz',province:'FUJIAN',city:238,mapid:12,x:544968,y:552436,mpx:0.14742,mpy:0.20487,ruler:200};//
o__config['dali']=o__config['13']={domain:'dali',province:'YUNNAN',city:292,mapid:13,x:547676,y:535286,mpx:0.14742,mpy:0.20487,isLoadMiniMap:false,ruler:200};//
o__config['sz']=o__config['14']={domain:'sz',province:'GUANGDONG',city:7,mapid:14,x:558676,y:554886,mpx:0.14742,mpy:0.20487,ruler:200};//
o__config['jm']=o__config['15']={domain:'jm',province:'GUANGDONG',city:22,mapid:15,x:545976,y:536386,mpx:0.14742,mpy:0.20487,ruler:200};//

var city=0;
var province='';
var o_filter=[];
var o_nav=null;
var o_strlist=[];
var o__customValue=null;
var o_mapPath='';
var o_filePath='http://image.o.cn/';
var host=document.location.href.toLowerCase().split('/')[2];
var arr=host.split('.');
var domain=arr[0]!='en'?arr[0]:arr[1]; 
if(typeof(o_mapid)=='undefined'||typeof(o_mapid)!='number')var o_mapid=0;
var useNav=true;

function setFilter(filter){
	if(!filter)filter=o_filter;
	for(var i=0;i<filter.length;i++){
		var item=filter[i];
		delete o__customValue[item];
	}
}

function setConfig(key){
	var flag=true;
	if(key&&o__config[key]){
		o__customValue=o__config[key];
		o_mapid=o__customValue.mapid;
	}
	else if(o__config[host]){
		o__customValue=o__config[host];
		o_mapid=o__customValue.mapid;
	}
	else if(o__config[domain]){
		o__customValue=o__config[domain];
		o_mapid=o__customValue.mapid;
	}
	else if(o__config[o_mapid]){
		flag=false;
		o__customValue=o__config[o_mapid];
	}
	else{
		o__customValue=o__config['gz'];
	}
	o_mapid=o__customValue.mapid;
	city=o__customValue.city;
	province=o__customValue.province;
	setFilter();
	o_mapPath='http://map.o.cn/resource/mappic/';
	//var dir='zh_cn';
	//if(typeof(o_locale)=='string')dir=o_locale;
//	if(!key&&flag)document.write('<script src="/js/data/'+localeParam.locale+'/'+o__customValue.domain+'.js"></script>');
}
function setDomain(i){
	if(typeof(i)!='number')i=0;
	var arr=host.split('.');
	if(i>arr.length) {
		alert('domain err');
		return;
	}
	domain=arr[i];
}
function setLocaleParam(){
	localeParam={locale:'zh_cn',ext1:'',ext2:'_zh_cn'};
	if(typeof(locale)=='string')localeParam.locale=locale;
	localeParam.ext1=localeParam.locale=='zh_cn'?'':'_'+localeParam.locale;
	localeParam.ext2='_'+localeParam.locale;
}
function setNav(){
	if(useNav&&o_nav)document.write(o_nav);
	else document.getElementById('divMapNav').style.display='none';
}
function setHot(index){
	if(o_strlist[index])document.write(o_strlist[index]);
}
function setTitle(){
	if(o_strlist['city'])document.write('<title>都市圈-'+o_strlist['city']+'站</title>');
	else document.write('<title>都市圈</title>');
}
function setLogo(){
	document.write('<img src="/images/skin3/logo/'+localeParam.locale+'/'+getLogo()+'" border="0" width="146" height="88" />');
}
function getLogo(){
	var logoList={dy:'www.dycity.gov.cn.jpg'};
	var domain=o__customValue.domain;
	var logo=domain+'.gif';
	var arr=host.split('.');
	var myDomain=arr[arr.length-2]+'.'+arr[arr.length-1];
	if(myDomain!='o.cn'&&logoList[domain]) logo=logoList[domain];
	return logo;
}
setLocaleParam()
setConfig();
